package com.rraj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;


/**
 * Created by hqm on 2017/11/12.
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.rraj")
@EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class})
@SpringBootApplication
//@EnableGlobalMethodSecurity(prePostEnabled = true)
public class FeignClientApplication {
    public static void main(String args[]){
        SpringApplication.run(FeignClientApplication.class,args);
    }
}
